package cn.kduck.module.user.exception;

import cn.kduck.module.user.service.User;

public class ExistUserException extends RuntimeException{

    private final User user;

    public ExistUserException(User user) {
        this.user = user;
    }

    public ExistUserException(User user,String message) {
        super(message);
        this.user = user;
    }

    public User getUser() {
        return user;
    }
}
